]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdm: don't clear bullets while authenticating
authorRay Strode <rstrode@redhat.com>
Mon, 17 Oct 2011 05:51:02 +0000 (01:51 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 17 Oct 2011 21:37:06 +0000 (17:37 -0400)
Users don't expect the bullets they just typed into an entry
field to disappear as soon as they hit enter.

Instead, they want the dialog to become insensitive during the
authentication process, so that it's clear that what they typed
in is being processed.

https://bugzilla.gnome.org/show_bug.cgi?id=657894

data/theme/gdm.css
js/gdm/loginDialog.js

index c23178fd3f2a30a0dafdb63646a31dc81957731d..e8e4d2a9d39df60c7c2c153d7bba3fda5b6b42bc 100644 (file)
     warning-color: #999;
 }
 
+.login-dialog-prompt-entry:insensitive {
+    color: rgba(0,0,0,0.7);
+    border: 2px solid #565656;
+}
+
 .login-dialog-session-list {
     color: #ffffff;
     font-size: 10.5pt;
index 5420217abdd532cd633242daa984cd570edd648c..473b7cbc8bda7d53045c842c9c42b2a092306d9d 100644 (file)
@@ -1061,6 +1061,8 @@ LoginDialog.prototype = {
 
                      function() {
                          this._promptFingerprintMessage.hide();
+                         this._promptEntry.reactive = true;
+                         this._promptEntry.remove_style_pseudo_class('insensitive');
                          this._promptEntry.set_text('');
                      }];
 
@@ -1076,7 +1078,8 @@ LoginDialog.prototype = {
 
                      function() {
                          let _text = this._promptEntry.get_text();
-                         this._promptEntry.set_text('');
+                         this._promptEntry.reactive = false;
+                         this._promptEntry.add_style_pseudo_class('insensitive');
                          this._greeterClient.call_answer_query(serviceName, _text);
                      }];